package com.wfs.operator;

/**
 * 三元运算符
 */
public class OperatorDemo5 {
    public static void main(String[] args) {
        print1();
    }
    public static void print1() {
        int a = 10;
        int b = 20;
        int c = a > b ? a : b;
        System.out.println(c);
    }
}
